<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Aria: ArSectors Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Aria
   &#160;<span id="projectnumber">2.9.4</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classArSectors.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="classArSectors-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">ArSectors Class Reference<div class="ingroups"><a class="el" href="group__UtilityClasses.html">Utility Classes</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>A class for keeping track of if a complete revolution has been attained.  
 <a href="classArSectors.html#details">More...</a></p>

<p><code>#include &lt;ariaUtil.h&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a25baf84d3e5581eecaa27fb8f5838e23"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a25baf84d3e5581eecaa27fb8f5838e23"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classArSectors.html#a25baf84d3e5581eecaa27fb8f5838e23">ArSectors</a> (int numSectors=8)</td></tr>
<tr class="memdesc:a25baf84d3e5581eecaa27fb8f5838e23"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <br /></td></tr>
<tr class="separator:a25baf84d3e5581eecaa27fb8f5838e23"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4e6b09dd4bcbcc1cc45e92b0dff4a846"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4e6b09dd4bcbcc1cc45e92b0dff4a846"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classArSectors.html#a4e6b09dd4bcbcc1cc45e92b0dff4a846">clear</a> (void)</td></tr>
<tr class="memdesc:a4e6b09dd4bcbcc1cc45e92b0dff4a846"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears all quadrants. <br /></td></tr>
<tr class="separator:a4e6b09dd4bcbcc1cc45e92b0dff4a846"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6c18eae1c4125fd79edb6f5413e07a64"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6c18eae1c4125fd79edb6f5413e07a64"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classArSectors.html#a6c18eae1c4125fd79edb6f5413e07a64">didAll</a> (void) const </td></tr>
<tr class="memdesc:a6c18eae1c4125fd79edb6f5413e07a64"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if the all of the quadrants have been gone through. <br /></td></tr>
<tr class="separator:a6c18eae1c4125fd79edb6f5413e07a64"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3fb8d65e2bae30ef5226983b52a03bb6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3fb8d65e2bae30ef5226983b52a03bb6"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classArSectors.html#a3fb8d65e2bae30ef5226983b52a03bb6">update</a> (double angle)</td></tr>
<tr class="memdesc:a3fb8d65e2bae30ef5226983b52a03bb6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Updates the appropriate quadrant for the given angle. <br /></td></tr>
<tr class="separator:a3fb8d65e2bae30ef5226983b52a03bb6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaeefe37d3c862342b23af38e85a85e3c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaeefe37d3c862342b23af38e85a85e3c"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classArSectors.html#aaeefe37d3c862342b23af38e85a85e3c">~ArSectors</a> ()</td></tr>
<tr class="memdesc:aaeefe37d3c862342b23af38e85a85e3c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:aaeefe37d3c862342b23af38e85a85e3c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a8f564f34eba757d5e6114d227e586cd3"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8f564f34eba757d5e6114d227e586cd3"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>myNumSectors</b></td></tr>
<tr class="separator:a8f564f34eba757d5e6114d227e586cd3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4baf57cc8fa00cf813fe1882d0d08072"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4baf57cc8fa00cf813fe1882d0d08072"></a>
int *&#160;</td><td class="memItemRight" valign="bottom"><b>mySectors</b></td></tr>
<tr class="separator:a4baf57cc8fa00cf813fe1882d0d08072"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa7c61c85e6437a49e53140a1013a2902"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa7c61c85e6437a49e53140a1013a2902"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>mySectorSize</b></td></tr>
<tr class="separator:aa7c61c85e6437a49e53140a1013a2902"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A class for keeping track of if a complete revolution has been attained. </p>
<p>This class can be used to keep track of if a complete revolution has been done, it is used by doing doing a clearQuadrants when you want to stat the revolution. Then at each point doing an updateQuadrant with the current heading of the robot. When didAllQuadrants returns true, then all the quadrants have been done. </p>
</div><hr/>The documentation for this class was generated from the following file:<ul>
<li>ariaUtil.h</li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="classArSectors.html">ArSectors</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
  </ul>
</div>
</body>
</html>
